package com.annotation.demo;

/**
 * 定义的计算器类
 */
public class Calculator {
    //加法
    @Check
    public void add() {
        String a = null;
        System.out.println(a.toString());
        System.out.println("1+0 = " + (1 + 0));
    }

    //除法
    @Check
    public void div() {
        System.out.println("1/0 =" + (1 / 0));
    }

    public void show() {
        System.out.println("永无bug...");
    }

}

